#ifndef ROTATINGISLE_H
#define ROTATINGISLE_H

#include <string>
#include "Box2D/Box2D.h"
#include "SFML/Graphics.hpp"
#include <SFML/OpenGL.hpp>
#include "Isle.h"

using namespace std;

class RotatingIsle : public Isle
{
public:
	RotatingIsle(GameState *gameState, const b2Vec2 &center, float size = 8.0f);

	void firstUpdate();

	virtual void update(double dt);

	const b2Vec2& getCenter(){ return m_center; } 

	const b2Vec2& getOriginalPosition(){ return m_originalPos; }

	void setOriginalPosition(const b2Vec2 &pos){ m_originalPos = pos; }

	float getTheta(){ return m_theta; }

	void setTheta(float theta){ m_theta = theta; }

private:
	b2Vec2 m_center;

	b2Vec2 m_originalPos;

	float m_theta;

};

#endif
